package com.lhc.dao;

import com.lhc.pojo.User;

import java.sql.SQLException;

/**
 * @author lhc
 * @version V1.0
 * @date 2021/06/30
 **/
public interface UserDao {
    /**
     * 添加用户
     * @param user
     * @return
     * @throws SQLException
     */
    int insert(User user) throws SQLException;

    /**
     * 根据名字查找用户
     * @param username
     * @return
     * @throws SQLException
     */
    User findByName(String username) throws SQLException;

}
